package com.jeecms.wicool.entity.share;

import com.jeecms.wicool.entity.image.ImageEntity;
import com.jeecms.wicool.entity.user.UserInfo;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Set;

/**
 * Created by cuiyanlei on 15/6/17.
 */
public class FoodShare implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private String title;
    private String subTitle;
    private String content;
    private Integer userId;
    private Short status;
    private Praise praise;
    private Timestamp createTime;
    private Timestamp updateTime;

    private UserInfo author;
    private Set<ImageEntity> images;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public FoodShare() {

    }

    public FoodShare(Integer id, String title, String subTitle, String content, Integer userId, Short status, Timestamp createTime, Timestamp updateTime) {

        this.id = id;
        this.title = title;
        this.subTitle = subTitle;
        this.content = content;
        this.userId = userId;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Praise getPraise() {
        return praise;
    }

    public void setPraise(Praise praise) {
        this.praise = praise;
    }

    public Set<ImageEntity> getImages() {
        return images;
    }

    public void setImages(Set<ImageEntity> images) {
        this.images = images;
    }

    public UserInfo getAuthor() {
        return author;
    }

    public void setAuthor(UserInfo author) {
        this.author = author;
    }
}
